﻿@{
    ViewBag.Title = "查看ETL任务信息";
    Layout = "~/Views/Shared/_Main.cshtml";
}
@section Head{
    <script type="text/javascript">
        var UrlArray = $.getUrlArray();
        $(function () {
            $.post("/SystemConfiguration/GetETLStep?viewID=" + UrlArray["viewID"] + "&dbName=" + encodeURI(UrlArray["dbName"]), function (result) {
                jv.SetDivJson($(".table_bg"), 4, result);
                if(result.TaskStatus==2)
                    $("#spa_TaskStatus").html("成功");
                else if (result.TaskStatus == 0)
                    $("#spa_TaskStatus").html("失败");
                else if (result.TaskStatus == 1)
                    $("#spa_TaskStatus").html("未执行");
            });
        }); 
    </script>
}
<div style="margin: 5px; height:410px; overflow-y: scroll">
    <table class="listTitle">
        <tbody>
            <tr>
                <td width="15">
                    <img src="/images/search.png">
                </td>
                <td width="300">
                    查看ETL任务
                </td>
                <td align="right">
                </td>
            </tr>
        </tbody>
    </table>
    <table class="table_bg" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td width="120" align="right">
                步骤名称：
            </td>
            <td>
            <div style="word-wrap:break-word; width:600px;">
                <span id="spa_StepName"></span></div>
            </td>
        </tr>
        <tr>
            <td align="right">
                开始时间：
            </td>
            <td>
                <span id="spa_StartTime"></span>
            </td>
        </tr>
        <tr>
            <td align="right">
                结束时间：
            </td>
            <td>
                <span id="spa_EndTime"></span>
            </td>
        </tr>
        <tr>
            <td align="right">
                执行时间：
            </td>
            <td>
                <span id="spa_CreateTime"></span>
            </td>
        </tr>
        <tr>
            <td align="right">
                执行状态：
            </td>
            <td>
                <span id="spa_TaskStatus"></span>
            </td>
        </tr>
        <tr>
            <td align="right">
                执行结果：
            </td>
            <td>
                <span id="spa_Result"></span>
            </td>
        </tr>
    </table>
</div>
